#ifndef RIVER_H
#define RIVER_H

#include <QObject>
#include <QGraphicsPixmapItem>
#include <QGraphicsSceneMouseEvent>

class River : public QObject, public QGraphicsPixmapItem
{
    Q_OBJECT

public:
    River(QPixmap pixmap, QGraphicsScene * scene, QObject * parent = 0);

protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event);
    void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
    void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
    void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

signals:
    void clicked();
    void hoverChanged(bool isIn);
};

#endif // RIVER_H
